package com.kyd.auth.controller;

import com.kyd.auth.service.DriverAccountService;
import com.kyd.base.response.Ret;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhuangqi
 * @date 2019-03-27
 */
@RestController
@RequestMapping(value = "/driver")
public class DriverAccountController {

    @Autowired
    private DriverAccountService driverAccountService;

    @GetMapping(value = "/{id}")
    public Ret get(@PathVariable Long id) {
        return Ret.ok().data(driverAccountService.get(id));
    }

}
